import Axios from '@/utils/request';
// import Axios from 'axios';
/**
 * 静态偏离度比对
 */
export function staticCompare(): Promise<any> {
    return Axios.get('/deviation/static/compare');
}

/**
 * 各类型条目-条目结果/明细结果差异情况(柱状图)
 */
export function deviationStaticDifferenceBar(data): Promise<any> {
    return Axios.post('/deviation/static/difference/bar', data);
}

/**
 * 静态风险偏离度结果查询
 */
export function deviationStaticQuery(data): Promise<any> {
    return Axios.post('deviation/static/query', data);
}

/**
 * 条目结果差异概况（环形图）
 */
export function deviationStaticDifferenceSurvey(): Promise<any> {
    return Axios.get('/deviation/static/difference/survey');
}

/**
 * 明细结果差异类型分布（环形图）
 */
export function deviationStaticResultDiffTypeSurvey(): Promise<any> {
    return Axios.get('/deviation/static/result/diffType/survey');
}
/**
 * 条目结果明细差异概况（环形图）
 */
export function deviationStaticResultDifferenceSurvey(): Promise<any> {
    return Axios.get('/deviation/static/result/difference/survey');
}

/**
 * 明细结果触警类型分布（环形图）
 */
export function deviationStatiResultThresholdTypeSurvey(): Promise<any> {
    return Axios.get('/deviation/static/result/thresholdType/survey');
}
